package com.qingcloud.base.utils;

import cn.hutool.extra.spring.SpringUtil;
import org.springframework.cloud.openfeign.FeignContext;

public class SpringUtils extends SpringUtil {
    public static <T> T getFeignBean(String beanName, Class<T> tClass) {
        FeignContext feignContext = getApplicationContext().getBean("feignContext", FeignContext.class);
        return feignContext.getInstance(beanName, tClass);
    }
}
